#ifndef NEWDEVICEDIALOG_H
#define NEWDEVICEDIALOG_H

#include <QDialog>
#include <QMap>
#include "./toObject/ModelXml.h"
#include "./pugixml/pugixml.hpp"
namespace Ui {
class NewDeviceDialog;
}


class NewDeviceDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewDeviceDialog(QWidget *parent = nullptr);
    ~NewDeviceDialog();
    void SetInitDevicelName(QString  name,int channelID);
    stCollecDevice GetDeviceInfo();

private:
    void ParseXML(QString strFilePath);

private slots:
    void on_pushButton_clicked();
    void on_comboBox_2_currentTextChanged(const QString &arg1);

    void on_pushButton_2_clicked();

private:
    Ui::NewDeviceDialog *ui;
    QMap<QString,QWidget *> m_mapChilds;
    QMap<int ,stPrivateParam> m_params;
    stCollecDevice m_collectDevice;
};

#endif // NEWDEVICEDIALOG_H
